<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateHouseUserBindsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('house_user_binds', function (Blueprint $table) {
            $table->id();
            $table->string('id_card_number');
            $table->string('user_name')->comment('租客姓名');
            $table->tinyInteger('house_id');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('house_user_binds');
    }
}
